<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/backend/login.css" media="screen" title="no title" />
        <title><?php echo Yii::app()->params['frontend']['site_name']; ?> :: Backend</title>
        <script src="http://www.google.com/jsapi" type="text/javascript"></script>
        <script type="text/javascript">
            google.load("jqueryui", "1.7.2");
        </script>
        <script type="text/javascript">
            jQuery(document).ready(function() {
                $("a#why-open").hide().effect("slide", { direction: "up" }, "slow");
                $("a#why-close").hide();
                $("a#why-open").click(function() {
                    $(this).effect("slide", { direction: "up", mode: "hide" });
                    $("div#about").effect("slide", { direction: "up" }, "", function() {
                        $("a#why-close").effect("slide", { direction: "up" });
                    });
                });
                $("a#why-close").click(function() {
                    $(this).fadeOut();
                    $("div#about").effect("slide", { direction: "up", mode: "hide" });
                    $("a#why-open").effect("slide", { direction: "up" }, "slow");
                });
            });
        </script>
    </head>
    <body>
        <div id="top-bar"></div>
        <div id="wrapper">
            <a id="why-open" href="#">About</a>
            <div id="why-wrapper">
                <div id="about">
                    <h3>What's DoIt?</h3>
                    <p>
                        <strong>DoIt</strong> Is a source software. You can use it quick build you site.
                        Save you a lot of time.
                    </p>
                    <p>
                        Current Version: <?php echo Yii::app()->params['version']; ?>
                        (<?php echo Yii::app()->params['last_modify_time']; ?>)
                    </p>
                    <p><strong>Happy Work, So Doit</strong></p>
                    <p>You can download it from the below link</p>
                    <p>
                        <a href="http://doit.yuandot.com" target="_blank"><strong>Download it now......</strong></a>
                    </p>

                    <h3>Why should I use DoIt</h3>
                    <p>DoIt is easy to learn and use. You only need to know PHP and object-oriented programming. You are not forced to learn a new configuration or templating language.</p>

                    <h3>License</h3>
                    <p>
                        GNU General Public License
                    </p>

                    <h3>Google SVN</h3>
                    <p><a href="http://ydoit.googlecode.com" target="_blank">http://ydoit.googlecode.com</a></p>
                    
                </div>
                <a id="why-close" href="#">DoIt!</a>
            </div>

            <div id="content">
                <h2>DoIt.</h2>


                <div id="container">
                    <h4 class="title">&nbsp;</h4>
                    <div class="left">
                        <?php echo CHtml::beginForm(); ?>
                        <dl>
                            <dt><?php echo CHtml::activeLabel($form, Yii::t('loginForm', 'username'), array('class' => 'text')); ?></dt>
                            <dd><?php echo CHtml::activeTextField($form,'username') ?></dd>

                            <dt><?php echo CHtml::activeLabel($form, Yii::t('loginForm', 'password'), array('class' => 'text')); ?></dt>
                            <dd><?php echo CHtml::activePasswordField($form, 'password') ?></dd>

                            <dt class="row_captcha">
                                <?php
                                $this->widget('CCaptcha', array(
                                    'buttonLabel' => CHtml::image(Yii::app()->baseUrl
                                        . '/assets/backend/images/login/icon_refresh.png'),
                                    'buttonOptions' => array('style' => 'border: none;')
                                ));
                            ?>
                            </dt>
                            <dd class="row_captcha"><?php echo CHtml::activePasswordField($form, 'verifyCode') ?></dd>

                            <dt>&nbsp;</dt>
                            <dd>
                                <?php echo CHtml::activeCheckBox($form, 'rememberMe', array('class' => 'checkbox')); ?>
                                <?php echo CHtml::activeLabel($form, 'rememberMe'); ?>
                                <?php echo CHtml::submitButton('', array('class' => 'btn')); ?>
                            </dd>
                        </dl>

                        <?php echo CHtml::endForm(); ?>
                    </div>
                    <div class="right">
                        <?php
                        if ($form->hasErrors()) {
                            echo CHtml::errorSummary($form);
                        } else {
                            echo CHtml::image(Yii::app()->baseUrl . '/assets/backend/images/login/login_manager.png');
                        }
                        ?>
                    </div>
                </div>
            </div>

            <div id="footer">
                <span>Copyright &copy; <?php echo date('Y'); ?> by ChangSha Yuandot Information Technology CO.,LTD. All Rights Reserved.</span>
            </div>
        </div>


    </body>
</html>